home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 224 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: bmecg.bme.ohio-state.edu!xiaoyi
  2. From: xiaoyi@bmecg.bme.ohio-state.edu (Xiaoyi Wu)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: qsort help
  5. Date: 3 Jan 1996 14:15:27 GMT
  6. Organization: Biomedical Engineering OSU
  7. Distribution: world
  8. Message-ID: <4ce31v$c50@charm.magnus.acs.ohio-state.edu>
  9. References: <4cdqus$j5i@sparcserver.lrz-muenchen.de> <4ccio7$7c0@charm.magnus.acs.ohio-state.edu> <4cdomq$jgt@dub-news-svc-5.compuserve.com>
  10. Reply-To: xiaoyi@bmecg.bme.ohio-state.edu (Xiaoyi Wu)
  11. NNTP-Posting-Host: bmecg.bme.ohio-state.edu
  12.  
  13. My sincere thanks to all those who have responded to my question on 
  14. qsort.
  15.  
  16. So my mistake has been twofold: 1. int (*compar)() only declares a
  17. pointer to a function; 2. the parameters of compar should be
  18. const void * as documented in the man page of qsort.
  19.  
  20. The program is already working, which wouldn't be possible without
  21. kind help from you all.
  22.  
  23. Thanks again, and wish you a very happy new year!
  24.  
  25. Xiaoyi
  26.  
  27. /=======================================================================\
  28. | Xiaoyi Wu        || If you can't convince them, confuse them.         |
  29. | 614-421-0934 (h) ||  xiaoyi@mozart.bme.ohio-state.edu                    |
  30. | 614-292-1555 (o) ||  http://chopin.bme.ohio-state.edu/~xiaoyi/hi.html |
  31. \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/
  32.